import React from 'react'
import { observer } from 'mobx-react'

function App({timer}) {

  return (
    <div className="App">
      {timer.secondsPassed}
      <button onClick={() => timer.increment()}>+</button>
      <button onClick={() => timer.reset()}>reset</button>
    </div>
  )
}

export default observer(App)